<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>WLog: WLog名字空间参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- 制作者 Doxygen 1.5.8 -->
<script type="text/javascript">
<!--
function changeDisplayState (e){
  var num=this.id.replace(/[^[0-9]/g,'');
  var button=this.firstChild;
  var sectionDiv=document.getElementById('dynsection'+num);
  if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
    sectionDiv.style.display='block';
    button.src='open.gif';
  }else{
    sectionDiv.style.display='none';
    button.src='closed.gif';
  }
}
function initDynSections(){
  var divs=document.getElementsByTagName('div');
  var sectionCounter=1;
  for(var i=0;i<divs.length-1;i++){
    if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
      var header=divs[i];
      var section=divs[i+1];
      var button=header.firstChild;
      if (button!='IMG'){
        divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
        button=document.createElement('img');
        divs[i].insertBefore(button,divs[i].firstChild);
      }
      header.style.cursor='pointer';
      header.onclick=changeDisplayState;
      header.id='dynheader'+sectionCounter;
      button.src='closed.gif';
      section.id='dynsection'+sectionCounter;
      section.style.display='none';
      section.style.marginLeft='14px';
      sectionCounter++;
    }
  }
}
window.onload = initDynSections;
-->
</script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>首页</span></a></li>
      <li class="current"><a href="namespaces.html"><span>名字空间</span></a></li>
      <li><a href="annotated.html"><span>类</span></a></li>
      <li><a href="files.html"><span>文件</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="namespaces.html"><span>名字空间列表</span></a></li>
      <li><a href="namespacemembers.html"><span>名字空间成员</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>WLog名字空间参考</h1><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>组合类型</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWLog_1_1BlockOuter.html">BlockOuter</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWLog_1_1ILevel.html">ILevel</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Define Interface for Log Level.  <a href="classWLog_1_1ILevel.html#_details">更多...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWLog_1_1ILogProcess.html">ILogProcess</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Interface for process the logs.  <a href="classWLog_1_1ILogProcess.html#_details">更多...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWLog_1_1IOuter.html">IOuter</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Interface for output <a class="el" href="classWLog_1_1Record.html" title="记录类，记录一条信息的所有字段。">Record</a> with define Log Level.  <a href="classWLog_1_1IOuter.html#_details">更多...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWLog_1_1Record.html">Record</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">记录类，记录一条信息的所有字段。  <a href="classWLog_1_1Record.html#_details">更多...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWLog_1_1RegularOuter.html">RegularOuter</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">对IOuter实现正规的格式输出  <a href="classWLog_1_1RegularOuter.html#_details">更多...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWLog_1_1XmlOuter.html">XmlOuter</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">对IOuter实现xml格式输出  <a href="classWLog_1_1XmlOuter.html#_details">更多...</a><br></td></tr>
<tr><td colspan="2"><br><h2>类型定义</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef bool(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html#fc8bd5f12f250893cf48c07b699a247d">FunCallBack</a> )(<a class="el" href="classWLog_1_1Record.html">Record</a> *, <a class="el" href="classWLog_1_1IOuter.html">IOuter</a> *)</td></tr>

<tr><td colspan="2"><br><h2>函数</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html#f770b4e0f4b2b7ca048441d67a717c24">stringFormat</a> (const char *szFormat,...)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html#c39b3d60384769edcbbb814afb1818ce">vstringFormat</a> (const char *szFormat, va_list ap)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html#e03867cb6729e5290f99dd0198c665ab">l2str</a> (long lValue)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html#1c4f5dd9ea3aeb7f92f7e540197a00b8">getTimeStr</a> (time_t time, const char *szFormat)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">time_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html#bde42e02b00d5bd21cba645298573f19">now_time_t</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html#6315f1351a7f92cf5bb70536413cb0da">cb_trimFileName</a> (<a class="el" href="classWLog_1_1Record.html">Record</a> *pRecord, <a class="el" href="classWLog_1_1IOuter.html">IOuter</a> *)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html#9ceab8f8dc49e6ae5886332c430b3573">cb_exit</a> (<a class="el" href="classWLog_1_1Record.html">Record</a> *, <a class="el" href="classWLog_1_1IOuter.html">IOuter</a> *pOuter)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html#05e19038a875320b3c71790d92a282cf">cb_assert</a> (<a class="el" href="classWLog_1_1Record.html">Record</a> *, <a class="el" href="classWLog_1_1IOuter.html">IOuter</a> *pOuter)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWLog_1_1ILogProcess.html">ILogProcess</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html#4c90989d4645c6ecd9d9113c3dc64fcd">setLog</a> (<a class="el" href="classWLog_1_1ILogProcess.html">ILogProcess</a> *pLog)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">设置log指针.  <a href="#4c90989d4645c6ecd9d9113c3dc64fcd"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWLog_1_1ILogProcess.html">ILogProcess</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html#88d869c121c4e8992922002033ac06c6">getLog</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">获取log指针.  <a href="#88d869c121c4e8992922002033ac06c6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWLog_1_1IOuter.html">IOuter</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html#251ca1d97c3062af94fc5471724dd6a1">setOuter</a> (<a class="el" href="classWLog_1_1IOuter.html">IOuter</a> *pOuter)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">设置log的输出outer指针.  <a href="#251ca1d97c3062af94fc5471724dd6a1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWLog_1_1ILogProcess.html">ILogProcess</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html#620aeb437d19cc9051eba3c2b1cfbc03">setOuterLog</a> (<a class="el" href="classWLog_1_1IOuter.html">IOuter</a> *pOuter, <a class="el" href="classWLog_1_1ILogProcess.html">ILogProcess</a> *pLog)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">设置log与log的outer指针.  <a href="#620aeb437d19cc9051eba3c2b1cfbc03"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html#121adb4c1a83fb9272cc01323d4da656">setOutLevel</a> (int iOutLevel=W_LEVEL_FLOOR)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">设置log的输出级别.  <a href="#121adb4c1a83fb9272cc01323d4da656"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html#14984727b0b46ea36398e5ebac29ef56">setTrimFileName</a> (bool bTrim)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">设置输出日志中，是否只保留文件名，而不要路径.  <a href="#14984727b0b46ea36398e5ebac29ef56"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html#157286d8013463871f20a6bfb039cac1">buildFileNameNow</a> (const char *szPrefix=&quot;&quot;, const char *szEnd=&quot;.log&quot;, const char *szFormatDateTime=&quot;%Y-%m-%d_%H%M%S&quot;)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">以当前的时间创建文件名  <a href="#157286d8013463871f20a6bfb039cac1"></a><br></td></tr>
<tr><td colspan="2"><br><h2>变量</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html#4eef0f756406a40b36699c3f95c5270e">bTrimFileName</a> = 0</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWLog_1_1ILogProcess.html">ILogProcess</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html#13b8ff10caf2fabc88a615041f44d6fa">log</a> = 0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">全局变量 <a class="el" href="classWLog_1_1ILogProcess.html" title="Interface for process the logs.">ILogProcess</a> 指针,使得所有的log操作都使用一个实例  <a href="#13b8ff10caf2fabc88a615041f44d6fa"></a><br></td></tr>
</table>
<hr><h2>类型定义文档</h2>
<a class="anchor" name="fc8bd5f12f250893cf48c07b699a247d"></a><!-- doxytag: member="WLog::FunCallBack" ref="fc8bd5f12f250893cf48c07b699a247d" args=")(Record *, IOuter *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef bool(* <a class="el" href="namespaceWLog.html#fc8bd5f12f250893cf48c07b699a247d">WLog::FunCallBack</a>)(<a class="el" href="classWLog_1_1Record.html">Record</a> *, <a class="el" href="classWLog_1_1IOuter.html">IOuter</a> *)          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>在文件<a class="el" href="ILevel_8h-source.html">ILevel.h</a>第<a class="el" href="ILevel_8h-source.html#l00027">27</a>行定义。</p>

</div>
</div><p>
<hr><h2>函数文档</h2>
<a class="anchor" name="f770b4e0f4b2b7ca048441d67a717c24"></a><!-- doxytag: member="WLog::stringFormat" ref="f770b4e0f4b2b7ca048441d67a717c24" args="(const char *szFormat,...)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string WLog::stringFormat           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>szFormat</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&nbsp;</td>
          <td class="paramname"> <em>...</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>在文件<a class="el" href="Common_8cpp-source.html">Common.cpp</a>第<a class="el" href="Common_8cpp-source.html#l00012">12</a>行定义。</p>

</div>
</div><p>
<a class="anchor" name="c39b3d60384769edcbbb814afb1818ce"></a><!-- doxytag: member="WLog::vstringFormat" ref="c39b3d60384769edcbbb814afb1818ce" args="(const char *szFormat, va_list ap)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string WLog::vstringFormat           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>szFormat</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">va_list&nbsp;</td>
          <td class="paramname"> <em>ap</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>在文件<a class="el" href="Common_8cpp-source.html">Common.cpp</a>第<a class="el" href="Common_8cpp-source.html#l00031">31</a>行定义。</p>

</div>
</div><p>
<a class="anchor" name="e03867cb6729e5290f99dd0198c665ab"></a><!-- doxytag: member="WLog::l2str" ref="e03867cb6729e5290f99dd0198c665ab" args="(long lValue)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string WLog::l2str           </td>
          <td>(</td>
          <td class="paramtype">long&nbsp;</td>
          <td class="paramname"> <em>lValue</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>在文件<a class="el" href="Common_8cpp-source.html">Common.cpp</a>第<a class="el" href="Common_8cpp-source.html#l00044">44</a>行定义。</p>

</div>
</div><p>
<a class="anchor" name="1c4f5dd9ea3aeb7f92f7e540197a00b8"></a><!-- doxytag: member="WLog::getTimeStr" ref="1c4f5dd9ea3aeb7f92f7e540197a00b8" args="(time_t time, const char *szFormat)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string WLog::getTimeStr           </td>
          <td>(</td>
          <td class="paramtype">time_t&nbsp;</td>
          <td class="paramname"> <em>time</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>szFormat</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>在文件<a class="el" href="Common_8cpp-source.html">Common.cpp</a>第<a class="el" href="Common_8cpp-source.html#l00057">57</a>行定义。</p>

</div>
</div><p>
<a class="anchor" name="bde42e02b00d5bd21cba645298573f19"></a><!-- doxytag: member="WLog::now_time_t" ref="bde42e02b00d5bd21cba645298573f19" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">time_t WLog::now_time_t           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>在文件<a class="el" href="Common_8cpp-source.html">Common.cpp</a>第<a class="el" href="Common_8cpp-source.html#l00072">72</a>行定义。</p>

</div>
</div><p>
<a class="anchor" name="6315f1351a7f92cf5bb70536413cb0da"></a><!-- doxytag: member="WLog::cb_trimFileName" ref="6315f1351a7f92cf5bb70536413cb0da" args="(Record *pRecord, IOuter *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool WLog::cb_trimFileName           </td>
          <td>(</td>
          <td class="paramtype">Record *&nbsp;</td>
          <td class="paramname"> <em>pRecord</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IOuter *&nbsp;</td>
          <td class="paramname"></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>在文件<a class="el" href="ILevel_8cpp-source.html">ILevel.cpp</a>第<a class="el" href="ILevel_8cpp-source.html#l00010">10</a>行定义。</p>

</div>
</div><p>
<a class="anchor" name="9ceab8f8dc49e6ae5886332c430b3573"></a><!-- doxytag: member="WLog::cb_exit" ref="9ceab8f8dc49e6ae5886332c430b3573" args="(Record *, IOuter *pOuter)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool WLog::cb_exit           </td>
          <td>(</td>
          <td class="paramtype">Record *&nbsp;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IOuter *&nbsp;</td>
          <td class="paramname"> <em>pOuter</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>在文件<a class="el" href="ILevel_8cpp-source.html">ILevel.cpp</a>第<a class="el" href="ILevel_8cpp-source.html#l00028">28</a>行定义。</p>

</div>
</div><p>
<a class="anchor" name="05e19038a875320b3c71790d92a282cf"></a><!-- doxytag: member="WLog::cb_assert" ref="05e19038a875320b3c71790d92a282cf" args="(Record *, IOuter *pOuter)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool WLog::cb_assert           </td>
          <td>(</td>
          <td class="paramtype">Record *&nbsp;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IOuter *&nbsp;</td>
          <td class="paramname"> <em>pOuter</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>在文件<a class="el" href="ILevel_8cpp-source.html">ILevel.cpp</a>第<a class="el" href="ILevel_8cpp-source.html#l00034">34</a>行定义。</p>

</div>
</div><p>
<a class="anchor" name="4c90989d4645c6ecd9d9113c3dc64fcd"></a><!-- doxytag: member="WLog::setLog" ref="4c90989d4645c6ecd9d9113c3dc64fcd" args="(ILogProcess *pLog)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWLog_1_1ILogProcess.html">ILogProcess</a> * WLog::setLog           </td>
          <td>(</td>
          <td class="paramtype">ILogProcess *&nbsp;</td>
          <td class="paramname"> <em>pLog</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
设置log指针. 
<p>
<dl compact><dt><b>参数:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>pLog</em>&nbsp;</td><td>新的 ILogProcess* </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>返回:</b></dt><dd>如果之存在 ILogProcess*，会将之前的返回, 否则返回null </dd></dl>

<p>在文件<a class="el" href="WLogInterface_8cpp-source.html">WLogInterface.cpp</a>第<a class="el" href="WLogInterface_8cpp-source.html#l00013">13</a>行定义。</p>

</div>
</div><p>
<a class="anchor" name="88d869c121c4e8992922002033ac06c6"></a><!-- doxytag: member="WLog::getLog" ref="88d869c121c4e8992922002033ac06c6" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWLog_1_1ILogProcess.html">ILogProcess</a> * WLog::getLog           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
获取log指针. 
<p>
<dl class="return" compact><dt><b>返回:</b></dt><dd>如果存在 <a class="el" href="classWLog_1_1ILogProcess.html" title="Interface for process the logs.">ILogProcess</a> *，会将之前的返回, 否则返回null </dd></dl>

<p>在文件<a class="el" href="WLogInterface_8cpp-source.html">WLogInterface.cpp</a>第<a class="el" href="WLogInterface_8cpp-source.html#l00020">20</a>行定义。</p>

</div>
</div><p>
<a class="anchor" name="251ca1d97c3062af94fc5471724dd6a1"></a><!-- doxytag: member="WLog::setOuter" ref="251ca1d97c3062af94fc5471724dd6a1" args="(IOuter *pOuter)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWLog_1_1IOuter.html">IOuter</a> * WLog::setOuter           </td>
          <td>(</td>
          <td class="paramtype">IOuter *&nbsp;</td>
          <td class="paramname"> <em>pOuter</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
设置log的输出outer指针. 
<p>
<dl class="note" compact><dt><b>注解:</b></dt><dd>如果log没有设置(即为NULL)，Debug下会有assert错误! </dd></dl>
<dl compact><dt><b>参数:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>pOuter</em>&nbsp;</td><td>新的 IOuter* </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>返回:</b></dt><dd>如果之存在IOuter*，会将之前的返回, 否则返回null </dd></dl>

<p>在文件<a class="el" href="WLogInterface_8cpp-source.html">WLogInterface.cpp</a>第<a class="el" href="WLogInterface_8cpp-source.html#l00025">25</a>行定义。</p>

</div>
</div><p>
<a class="anchor" name="620aeb437d19cc9051eba3c2b1cfbc03"></a><!-- doxytag: member="WLog::setOuterLog" ref="620aeb437d19cc9051eba3c2b1cfbc03" args="(IOuter *pOuter, ILogProcess *pLog)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWLog_1_1ILogProcess.html">ILogProcess</a> * WLog::setOuterLog           </td>
          <td>(</td>
          <td class="paramtype">IOuter *&nbsp;</td>
          <td class="paramname"> <em>pOuter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ILogProcess *&nbsp;</td>
          <td class="paramname"> <em>pLog</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
设置log与log的outer指针. 
<p>
<dl class="note" compact><dt><b>注解:</b></dt><dd>此函数主要用于设置 <a class="el" href="classWLog_1_1ILogProcess.html" title="Interface for process the logs.">ILogProcess</a> 的 <a class="el" href="classWLog_1_1IOuter.html" title="Interface for output Record with define Log Level.">IOuter</a> 指针为空的情况， 如果设置本来就有IOuter*指针的 <a class="el" href="classWLog_1_1ILogProcess.html" title="Interface for process the logs.">ILogProcess</a>, 记得要从返回的 <a class="el" href="classWLog_1_1ILogProcess.html" title="Interface for process the logs.">ILogProcess</a> * 里面取出 <a class="el" href="classWLog_1_1IOuter.html" title="Interface for output Record with define Log Level.">IOuter</a> * 并释放。 </dd></dl>
<dl compact><dt><b>参数:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>pOuter</em>&nbsp;</td><td>新的 IOuter* </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>pLog</em>&nbsp;</td><td>新的 ILogProcess* </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>返回:</b></dt><dd>如果之存在ILogProcess*，会将之前的返回, 否则返回null </dd></dl>

<p>在文件<a class="el" href="WLogInterface_8cpp-source.html">WLogInterface.cpp</a>第<a class="el" href="WLogInterface_8cpp-source.html#l00031">31</a>行定义。</p>

</div>
</div><p>
<a class="anchor" name="121adb4c1a83fb9272cc01323d4da656"></a><!-- doxytag: member="WLog::setOutLevel" ref="121adb4c1a83fb9272cc01323d4da656" args="(int iOutLevel=W_LEVEL_FLOOR)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool WLog::setOutLevel           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>iOutLevel</em> = <code>W_LEVEL_FLOOR</code>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
设置log的输出级别. 
<p>
<dl compact><dt><b>参数:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>iOutLevel</em>&nbsp;</td><td>新的级别, 默认为最低级别，可以输出所有 </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>返回:</b></dt><dd>如果成功返回true </dd></dl>

<p>在文件<a class="el" href="WLogInterface_8cpp-source.html">WLogInterface.cpp</a>第<a class="el" href="WLogInterface_8cpp-source.html#l00039">39</a>行定义。</p>

</div>
</div><p>
<a class="anchor" name="14984727b0b46ea36398e5ebac29ef56"></a><!-- doxytag: member="WLog::setTrimFileName" ref="14984727b0b46ea36398e5ebac29ef56" args="(bool bTrim)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool WLog::setTrimFileName           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>bTrim</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
设置输出日志中，是否只保留文件名，而不要路径. 
<p>
<dl compact><dt><b>参数:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>bTrim</em>&nbsp;</td><td>如果只要文件名,设置为true </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>返回:</b></dt><dd>返回之前的设置 </dd></dl>

<p>在文件<a class="el" href="WLogInterface_8cpp-source.html">WLogInterface.cpp</a>第<a class="el" href="WLogInterface_8cpp-source.html#l00050">50</a>行定义。</p>

</div>
</div><p>
<a class="anchor" name="157286d8013463871f20a6bfb039cac1"></a><!-- doxytag: member="WLog::buildFileNameNow" ref="157286d8013463871f20a6bfb039cac1" args="(const char *szPrefix=&quot;&quot;, const char *szEnd=&quot;.log&quot;, const char *szFormatDateTime=&quot;%Y&#45;%m&#45;%d_%H%M%S&quot;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string WLog::buildFileNameNow           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>szPrefix</em> = <code>&quot;&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>szEnd</em> = <code>&quot;.log&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>szFormatDateTime</em> = <code>&quot;%Y-%m-%d_%H%M%S&quot;</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
以当前的时间创建文件名 
<p>
<dl compact><dt><b>参数:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>szPrefix</em>&nbsp;</td><td>前缀, 默认为空 </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>szEnd</em>&nbsp;</td><td>后缀，默认为.log </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>szFormatDateTime</em>&nbsp;</td><td>日期和时间格式，按昭strftime所支持的格式，默认为"Y-m-d_HMS" </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>返回:</b></dt><dd>构造好的文件名 </dd></dl>

<p>在文件<a class="el" href="WLogInterface_8cpp-source.html">WLogInterface.cpp</a>第<a class="el" href="WLogInterface_8cpp-source.html#l00057">57</a>行定义。</p>

</div>
</div><p>
<hr><h2>变量文档</h2>
<a class="anchor" name="4eef0f756406a40b36699c3f95c5270e"></a><!-- doxytag: member="WLog::bTrimFileName" ref="4eef0f756406a40b36699c3f95c5270e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="namespaceWLog.html#4eef0f756406a40b36699c3f95c5270e">WLog::bTrimFileName</a> = 0          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>在文件<a class="el" href="WLogInterface_8cpp-source.html">WLogInterface.cpp</a>第<a class="el" href="WLogInterface_8cpp-source.html#l00009">9</a>行定义。</p>

</div>
</div><p>
<a class="anchor" name="13b8ff10caf2fabc88a615041f44d6fa"></a><!-- doxytag: member="WLog::log" ref="13b8ff10caf2fabc88a615041f44d6fa" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWLog_1_1ILogProcess.html">ILogProcess</a> * <a class="el" href="namespaceWLog.html#13b8ff10caf2fabc88a615041f44d6fa">WLog::log</a> = 0          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
全局变量 <a class="el" href="classWLog_1_1ILogProcess.html" title="Interface for process the logs.">ILogProcess</a> 指针,使得所有的log操作都使用一个实例 
<p>

<p>在文件<a class="el" href="WLogInterface_8cpp-source.html">WLogInterface.cpp</a>第<a class="el" href="WLogInterface_8cpp-source.html#l00011">11</a>行定义。</p>

</div>
</div><p>
</div>
<hr>
<address style="align: right;">
  Generated on Mon Apr 6 21:08:56 2009 for WLog by 韦体东<img src="logo.png" align="middle"/></address>
</body>
</html>
